/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.cms.dao;

import java.util.List;
import com.hlingsoft.cms.entity.Tags;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 达人申请
 * 
 * @author Zhangjiale
 * 
 */

@Repository
public interface TagsDao {



	/**
	 * 添加图片
	 * 
	 * @return Integer
	 */
	public long addTags(Tags tags);




	/**
	 * 通过id查询
	 * @return
	 */
	public List<Tags> getTags(@Param("appUserId")long appUserId,@Param("type")int type);


	public List<Tags> getTags2(@Param("type")int type,@Param("offset") long offset,
							   @Param("rows") long rows);


	public int getTags2Count(@Param("type")int type);


	public Tags getTagsById(@Param("id")long id);


	/**
	 * 更新
	 * @param id
	 * @return
	 */
    public int deleteTags(@Param("id")long id);


	public List<Tags> getTagsByAppUserIdWithNone(@Param("appUserId")long appUserId);



	public int updateTags(Tags tags);





}
